﻿<%@ Page Title="" Language="C#" MasterPageFile="~/main.master" AutoEventWireup="true" CodeFile="main2.aspx.cs" Inherits="main2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div style="margin-left:254px;height:586px;width:916px;">
            <asp:Label ID="labpage" runat="server" Text="" Font-Size="12px" Font-Names="宋体"></asp:Label>
            <table style="margin-left:30px;margin-top:10px;border-color:#ff9933; width:856px;height:120px;font-size: 9pt; font-family: 宋体;">
                <tr>
                    <td align="center">
                        <asp:DataList ID="dLRefine" runat="server" Width="780px"  RepeatColumns="3" 
                              >
                            <ItemTemplate>
                                <table style="height:62px;">
                                    <tr>
                                        <td rowspan="5" style="width:29px;">
                                            <asp:Image ID="imageRefine" runat="server" 
                                                ImageUrl='<%# DataBinder.Eval(Container.DataItem,"BookUrl") %>' />
                                        </td>
                                        <td colspan="2" align="center">
                                            <asp:LinkButton ID="InkbtnRName" runat="server" CommandName="detailSee" 
                                                Font-Underline="False" 
                                                CommandArgument='<%# DataBinder.Eval(Container.DataItem,"BookID") %>'>
                                            <%#DataBinder.Eval(Container.DataItem,"BookID") %>
                                            </asp:LinkButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            书名：
                                        </td>
                                        <td>
                                            <%#DataBinder.Eval(Container.DataItem, "BookName").ToString()%>￥
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            热卖价：
                                        </td>
                                        <td class="style3">
                                            <%#DataBinder.Eval(Container.DataItem, "HotPrice").ToString()%>￥
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" align="center">
                                            <asp:ImageButton ID="ImagebtnRefine" runat="server" CommandName="buy" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"BookID") %>' ImageUrl="~/images/购买.jpg" />
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:DataList>
                    </td>
                </tr>
            </table>
            <hr />
            <div style="margin:10px auto;font-size:12px;font-family:宋体;height:50px;" align="center">
                <asp:Label ID="location" Text="当前页码为:" runat="server"></asp:Label>[
                <asp:Label ID="dqy" Text="1" runat="server"></asp:Label>]
                <asp:Label ID="all" Text="总页码为:" runat="server"></asp:Label>[
                <asp:Label ID="zym" Text="" runat="server"></asp:Label>]
                <div style="margin:10px auto;font-size:12px;font-family:宋体;height:30px;" align="center">
                    <asp:LinkButton ID="first" Text="第一页" runat="server" onclick="first_Click" ></asp:LinkButton>
                    &nbsp;
                    <asp:LinkButton ID="last" Text="上一页" runat="server" onclick="last_Click"></asp:LinkButton>
                    &nbsp;
                    <asp:LinkButton ID="next" Text="下一页" runat="server" onclick="next_Click"></asp:LinkButton>
                    &nbsp;
                    <asp:LinkButton ID="final" Text="最后一页" runat="server" onclick="final_Click"></asp:LinkButton>
                </div>
            </div>
    </div>
</asp:Content>

